home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 22
/
AACD 22.iso
/
CDTools
/
S
/
ExtractCDID.awebrx
< prev
next >
Wrap
Text File
|
2000-12-02
|
699b
|
27 lines
/*
Extracts an individual CDID file from the archive
$VER: ExtractCDID.awebrx 1.1 (8.11.2000)
(c) Neil Bothwick, Wirenet
1.1 - Uses "parse source" to get the name of the CD
*/
options results
call addlib('rexxsupport.library',0,-30,0)
call addlib('rexxdossupport.library',0,-30,0)
options failat 21
parse source . ' ' . ' ' . ' ' ScriptName ' ' .
CDName = left(ScriptName, pos(':', ScriptName) - 1)
Archive = CDName':AACD/Resources/CDROM/CDIDs/CDIDs.lha'
ExtractPath = 'RAM:'
parse arg ID
address command 'LhA -I -q e' Archive 'Disks/'ID ExtractPath
if RC = 0 then msg = ID' is now in RAM:'
else msg = 'An error occurred extracting 'ID
'request title "Amiga Active CD" "'msg'" "OK"'
exit